package com.lc.demo.service;

import com.lc.demo.bean.Classgrade;
import com.lc.demo.bean.Student;
import com.lc.demo.bean.Subject;
import com.lc.demo.bean.Teacher;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface SubjectService {
    void addSubject(Subject subject,String classgradeids);

    List<Subject> getSubjectList(String username);

    void updateSubject(Subject subject);

    void delSubject(Subject subject);


    Subject selectSubjectByName(String subname);

    List<Classgrade> findClassListBySubjectId(Integer subjectId);

    List<Student> findStudentListByClassId(Integer classId);

    Teacher findTeacherByUsername(String username);

    List<Map<String,Object>> findSubjectListByTeacherId(Integer id);

    Subject subJectById(Integer subId);

    void addSubjectByUsername(Subject subject);
}
